<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script src="../js/vue.js"></script>
</head>

<body>
  <div id="app">
    <!-- 1.选择一个 -->
    <select name="fruit1" id="" v-model="fruit">
      <option value="苹果">苹果</option>
      <option value="香蕉">香蕉</option>
      <option value="橘子">橘子</option>
      <option value="榴莲">榴莲</option>
      <option value="桃子">桃子</option>
    </select>
    {{fruit}}


    <br>
    <!-- 2.选择多个 multiple-->
    <select name="fruit2" id="" v-model="fruits" multiple>
      <option value="苹果">苹果</option>
      <option value="香蕉">香蕉</option>
      <option value="橘子">橘子</option>
      <option value="榴莲">榴莲</option>
      <option value="桃子">桃子</option>
    </select>
    {{fruits}}

  </div>

  <script>
    var vm = new Vue({
      el: '#app',
      data: {
        fruit: '香蕉',
        fruits: []
      },
      methods: {}
    });
  </script>
</body>

</html>